﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS_BackEnd.Models.He;
using TMS_BackEnd.Models.SH;

namespace TMS_BackEnd.Configers
{
    public class sys_user_roleConfigers : IEntityTypeConfiguration<sys_user_role>
    {
        public void Configure(EntityTypeBuilder<sys_user_role> builder)
        {
            builder.ToTable(nameof(sys_user_role));
            builder.HasKey(e => e.Id);
            builder.Property(e => e.user_id).HasColumnType("bigint");
            builder.Property(e => e.role_id).HasColumnType("bigint");
        }
    }
}
